package ar.com.gep.soccer.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import ar.com.cdt.framework.persistence.entity.Base;

@Entity
public class SeasonItem extends Base {
	
	private static final long serialVersionUID = -6791944764874662475L;

	@ManyToOne
	@JoinColumn(name = "league_id", nullable = false)
	private League league;

	@Column
	private int dateStart;

	@Column
	private int dateEnd;

	public League getLeague() {
		return league;
	}

	public void setLeague(League league) {
		this.league = league;
	}

	public int getDateStart() {
		return dateStart;
	}

	public void setDateStart(int dateStart) {
		this.dateStart = dateStart;
	}

	public int getDateEnd() {
		return dateEnd;
	}

	public void setDateEnd(int dateEnd) {
		this.dateEnd = dateEnd;
	}
	
	
	
}
